<include file="Base:common_head" />
<script type="text/javascript">
    
    $(document).ready(function(e) {
        $("#loginName").focus(function(){
            if($(this).val()=="手机或用户名") $(this).val("");
            $(this).css("color","#000");
        });
        $("#loginName").blur(function(){
            if($(this).val()==""){
                $(this).val("手机或用户名");
                $(this).css("color","#999");
            }			
        });	
        $("input.input_yzm").blur(function(){
            $.post("__APP__/Public/checkverify",{"verify":$(this).val()},function(data){
                if(data.info=="ok") $(".check").css("background","url(/Public/default/images/ok.gif) no-repeat center center").show();
                else $(".check").css("background","url(/Public/default/images/no.gif) no-repeat center center").show();
            })	
        });	
        $("input.verify").focus(function(){
            $(".check").hide();
        });	
		
    });
        <notempty name="Think.session.userid">
        alert("您已经登录过了！");
    document.location="__APP__/Index";
        </notempty>
</script>
<div class="bg">
	<div class="bgbox">
    	<div class="Members_Login">
        	<form action="__URL__/checkLogin" method="post" >
            <input type="hidden" id="url" name="url" value="" />
            <input type="hidden" name="module" value="{$module}" />
            <input type="hidden" name="action" value="{$action}" />
        	<p><b>用户名:</b></p>
        	<p><input type="text" name="name" class="input_txt"  id="loginName" value="手机或用户名" /></p>
            <p><b>密　码:</b></p>
            <p><input type="password" name="pwd" class="input_txt"/></p>
            <p style="position:relative;">
            <b>验证码:</b></p>
            <p style="position:relative;">
            <input type="password" name="verify" class="input_yzm" maxlength="6"/><span class="check"></span>
            <img id="verify" src="__APP__/Public/verify" onclick="this.src='__APP__/Public/verify/Math.random()'" />
            <a href="javascript:void(0)" onclick="document.getElementById('verify').src='__APP__/Public/verify/'+Math.random()">看不清换一张</a>
            </p>
        	<p class="loginBtn"><input type="image" src="/Public/default/images/login_btn.jpg" /></p>
            </form>
            <div class="regnav"><a href="__APP__/Public/register">立即拥有淘宝装修账号 点击注册</a><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=496886097&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:496886097:52" alt="点击这里给我发消息" title="点击这里给我发消息"/>QQ客服</a></div>
        </div>
        <img src="/Public/default/images/mainbg.jpg" />
    </div>
</div>
<div class="bottomInfo">
	<div class="infoPic">
 	   <img src="/Public/default/images/info1.jpg" width="315" height="131" /><img src="/Public/default/images/info2.jpg" width="315" height="131" /><img src="/Public/default/images/info3.jpg" width="315" height="131" />
    </div>
</div>
<include file="Base:common_foot" />
</body>
<script type="text/javascript">
    function re(){ 
        var l = document.referrer;   
        $("#url").val(l);
    }
    re();
</script>
</html>
